#!/bin/sh
cd /Users/pawel/thesis/tex
latex -file-line-error-style main.tex
latex -file-line-error-style main.tex
bibtex -min-crossrefs -1 main
latex -file-line-error-style main.tex
latex -file-line-error-style main.tex
mv main.pdf ../thesis.pdf
mv main.* ../tmp/
mv ../tmp/main.tex main.tex
mv *.aux ../tmp/
